#!/bin/bash
echo "--- Run final setup script for things not completed by puppet"
echo "--- Consider to move some of these into puppet"

set -x

/etc/init.d/iptables stop    #hack to stop firewall
if [ ! -d /vagrant/tigase_logs ]; then
  mkdir /vagrant/tigase_logs
fi
  cp -pr /opt/tigase/logs /vagrant/tigase_logs
#/etc/init.d/tomcat6 stop     #hack to stop tomcat 

set +x
echo "-- DONE --"
echo "If you see this, you should be able to visit jabze site from http://10.0.10.18 (guest IP)"
echo " ...  It's okay to run now and run again:   vagrant provision"
